package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "db_supermarket")
@ApiModel(value = "超市实体类")
public class Supermarket implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "超市唯一编号")
    @TableId(value = "Supermarket_id",type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "超市名字")
    @TableField(value = "Supermarket_name")
    private String name;

    @ApiModelProperty(value = "超市地址")
    @TableField(value = "Supermarket_address")
    private String address;

    @ApiModelProperty(value = "超市联系电话")
    @TableField(value = "Supermarket_tel")
    private String tel;

    @ApiModelProperty(value = "超市负责人")
    @TableField(value = "Supermarket_leader")
    private String leader;
}
